package com.atguigu.medical.realtime.common;

/**
 * @Author lzc
 * @Date 2023/4/19 14:46
 */
public class Constant {
    
    public static final String KAFKA_SERVERS = "hadoop162:9092,hadoop163:9092,hadoop164:9092";
    
    public static final String TOPIC_ODS_MEDICAL = "ods_medical";
    public static final String TOPIC_ODS_LOG = "ods_log";
    
    public static final String MYSQL_HOST = "hadoop162";
    public static final int mysql_port = 3306;
    
    public static final String PHOENIX_DRIVER = "org.apache.phoenix.jdbc.PhoenixDriver";
    public static final String PHOENIX_URL = "jdbc:phoenix:hadoop162,hadoop163,hadoop164:2181";
  
    public static final String MYSQL_DRIVER = "com.mysql.cj.jdbc.Driver";
    
    public static final String MYSQL_URL = "jdbc:mysql://hadoop162:3306?useSSL=false";
    
    public static final String CLICKHOUSE_DRIVER = "com.clickhouse.jdbc.ClickHouseDriver";  // 新版本
    public static final String CLICKHOUSE_URL = "jdbc:clickhouse://hadoop162:8123/medical";
    
    public static final int TWO_DAYS = 2 * 24 * 60 * 60;
    
    public static final String TOPIC_DWD_DIAGNOSIS_PRESCRIPTION_DETAIL = "dwd_diagnosis_prescription_detail";
    public static final String TOPIC_DWD_TRADE_CONSULTATION_FEE_PAY_SUCCESS = "dwd_trade_consultation_fee_pay_success";
    public static final String TOPIC_DWD_TRADE_PRESCRIPTION_SUCCESS = "dwd_trade_prescription_success";
    public static final String TOPIC_DWD_INTERACTION_REVIEW = "dwd_interaction_review";
    
    public static final String TOPIC_DWD_DIAGNOSIS_CONSULTATION = "dwd_diagnosis_consultation";
    public static final String TOPIC_DWD_USER_REGISTER = "dwd_user_register";
    
    public static final String TOPIC_DWD_DOCTOR_REGISTER = "dwd_doctor_register";
    
}
